import Vue from 'vue'
import Router from 'vue-router'



import Admin from '../components/Admin'
import Loging from '../components/Loging'
import Menu from '../components/Menu'
import Goods from '../components/Goods'//积分商品
import GoodsType from '../components/GoodsType'//积分商品类别
import Month from '../components/Month'//销量
import Type from '../components/Type'//废品类别
import Order from '../components/Order'//废品类别



import SelectSiteInfo from '../components/SelectSiteInfo'                // 站点信息
import SelectSiteAccount from '../components/SelectSiteAccount'          // 站点账号信息
import SelectRecycleInfo from '../components/SelectRecycleInfo'          // 回收员信息
import SelectSiteStorage from '../components/SelectSiteStorage'    //回收员账号信息


//aaa

Vue.use(Router)

export default new Router({
  routes: [
   
    {
      path: '/',
      component: Loging
    },
    {//后台
      path: '/menu',
      component: Menu,
      children:[
        {
          path: '/admin',
          component: Admin
        },
        {//类别
          path: '/type',
          component: Type
        },
        {//销量
          path: '/month',
          component: Month
        },
        {//积分类别
          path: '/goodsType',
          component: GoodsType
        },
        {//积分商品
          path: '/goods',
          component: Goods
        },
        {//站点信息
          path: '/selectSiteInfo',
          component: SelectSiteInfo
        },
        {//站点账号信息
          path: '/selectSiteAccount',
          component: SelectSiteAccount
        },
        {//回收员信息
          path: '/selectRecycleInfo',
          component: SelectRecycleInfo
        },
        {//回收员账号信息
          path: '/selectSiteStorage',
          component: SelectSiteStorage
        },
        {//回收员账号信息
          path: '/order',
          component: Order
        },
        //Order
      ]
    }
  ]
})
